import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
		cartNum: 0,
		path:"/pages/index/index",
		wxscene:"http://doa.joyballet.cn/uploads/teacher_qrcode.jpeg",
		userInfo:'',
		student:[],
		sequence:'',
		popupInfo:null,
		wxsceneid:0,
		isActivity:false,
		videoList:null,
		videoUrl:null,
		active_info:null
	},
    mutations: {
		updateVideo(state,date){
			state.videoUrl=date
		},
		updateActive(state,date){
			state.active_info=date
		},
		updateVideoList(state,date){
			state.videoList=date
		},
		updateActivity(state,date){
			state.isActivity=date
		},
		updatePath(state,date){
			state.path=date
		},
		wxscenePath(state,date){
			state.wxscene=date
		},
		updateUserinfo(state,date){
			state.userInfo=date
		},
		updateVideo(state,date){
			state.sequence=date
		},
		updateVideoPopup(state,date){
			state.popupInfo=date
		},
		updateStudent(state,date){
			state.student=date
		},
		updateWxscene(state,date){
			state.wxsceneid=date
		}
		
	},
    actions: {}
})
export default store